🇯🇵 This article is a self-translated version of my original post written in Japanese, published on Zenn: GraphQLはなぜエラーでも200を返すのか?





Background


One of the most frequently debated topics in GraphQL error handling is: what HTTP status code should the server return?

In REST, the convention is clear: 400 for bad input, 403 for authorization...