Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDに紐づくエンティティを読み出す際、エンティティが存在しない場合に404を返しているが、500を返すべき #203

Open
arata-nvm opened this issue Apr 13, 2024 · 0 comments
Labels

Comments

@arata-nvm
Copy link
Member

arata-nvm commented Apr 13, 2024

例えば/projects/{project_id}を叩いたとき、その企画責任者と副企画責任者の情報を取得するためにユーザーのDBを叩いてユーザーの情報を取得するが、ここでそのユーザーの情報を取得できなかったとき、現状の実装では404を返すようになっている。しかし、これはサーバーに保存されている情報の不整合によるエラーなので、500を返すべきである。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant