gothinkster / koa-knex-realworld-example

240 stars 79 forks source link

BUGFIX: Change HTTP response to 401 for false login creds #12

Closed tecfu closed 5 years ago

tecfu commented 5 years ago

In the event of an incorrect email or password the error response returned should be a 401.

tecfu commented 5 years ago

I urge you to review the spec: https://github.com/gothinkster/realworld/tree/master/api#errors-and-status-codes.

It also appears that errors are not returned in the correct format.