Use formal status code in Misskey API #3619

Closed
acid-chicken wants to merge 3 commits from 404 into develop
acid-chicken commented 2018-12-15 04:46:31 +00:00 (Migrated from github.com)

Returns 404 when error message contains 'not found'.

Returns 404 when error message contains 'not found'.
syuilo commented 2018-12-15 07:09:22 +00:00 (Migrated from github.com)

ステータスコードにあまり依存したくない気持ちがあります(400で統一したい)
例えばファイルをフォルダに入れるAPIで404を返しても、ファイルが無かったのかフォルダが無かったのか判別できないので結局はエラーコードのようなものを返す必要があります

ステータスコードにあまり依存したくない気持ちがあります(400で統一したい) 例えばファイルをフォルダに入れるAPIで404を返しても、ファイルが無かったのかフォルダが無かったのか判別できないので結局はエラーコードのようなものを返す必要があります
tateisu commented 2018-12-15 08:31:18 +00:00 (Migrated from github.com)

API自体が存在しない場合にはどんなエラーが返るのか規定してほしい

API自体が存在しない場合にはどんなエラーが返るのか規定してほしい
syuilo commented 2018-12-15 11:18:48 +00:00 (Migrated from github.com)

API自体が存在しない場合にのみ 404 を返すのが良さそうに思います

API自体が存在しない場合にのみ 404 を返すのが良さそうに思います
mei23 commented 2018-12-15 11:20:29 +00:00 (Migrated from github.com)

既に存在しないAPIは404を返すようになってますね #2436

既に存在しないAPIは404を返すようになってますね #2436
syuilo commented 2018-12-15 11:20:54 +00:00 (Migrated from github.com)

あら失礼しました

あら失礼しました
syuilo commented 2018-12-15 11:21:14 +00:00 (Migrated from github.com)

それなら現状のままで良さそう...?

それなら現状のままで良さそう...?
acid-chicken commented 2018-12-15 12:12:13 +00:00 (Migrated from github.com)

ごめんなさい

ごめんなさい

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: firefish/firefish#3619
There is no content yet.