Misskey: きちんとHTTPステータスコード(404等)を返してあげる

Created on 7 Feb 2017  ·  5Comments  ·  Source: syuilo/misskey

https://misskey.xyz/foo →404


  • いづれのブラウザも
  • いづれのMisskey Webも


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

⚙️Server ✨Feature

All 5 comments

不可能そう

HTMLソースを見てもらえると分かるようにサーバーはただアプリケーションを出力してるだけなのでどんなステータスコードを返せばいいのかなんてサーバーには知る由が無い

これくらいはやりませんか(現状やってるか知らないけど)
https://support.google.com/webmasters/forum/AAAA2Jdx3sU2jXaBApsOQA/?hl=en

投稿はサーバーサイドでogを挿入しているからか、投稿が存在しないとき404、noteIdの形式が違うとき500を返してくれるようになった

noteIdの形式が違うとき500

これは404の方が良さそう

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ne-moni picture ne-moni  ·  3Comments

marek-lach picture marek-lach  ·  3Comments

ibrokemypie picture ibrokemypie  ·  3Comments

no-boot-device picture no-boot-device  ·  3Comments

tamaina picture tamaina  ·  3Comments