Hacker News new | ask | show | jobs
by cameronh90 1098 days ago
Authorization errors can go in the errors array which has a path reference in the standard.

You generally don't want to use HTTP error codes with field level errors in GQL.

1 comments

So still a 200? Or a 202, 206, 207?
401 or 403. Why is this a question?
Because there may be fields requested correctly alongside some requested incorrectly
Outside of very few cases it means the request was incorrect.

And bo one is stopping you from returning a response that contains error details.