Laravel Lighthouse GraphQL validation response code is 200 instead of 422

846 Views Asked by At

Why validation response code and unathuntication status code is 200(ok) instead of 422 and 401 ? how can i find request is failed to show error to users when all response codes are 200?

1

There are 1 best solutions below

0
On

Have a look at this thread for an explanation why it's 200 always: https://github.com/nuwave/lighthouse/issues/279