https://supertokens.com/ logo
Title
l

LW

03/09/2023, 6:59 AM
hey, when calling
signin
api from the supertokens.Middleware when I got the error response
json
{
    "status": "WRONG_CREDENTIALS_ERROR"
}
the http status code that I got is 200? is this as expected or is this a mistake from my end? using Go 1.18 and implemented it like this:
go
//adding the supertokens middleware
app.Use(adaptor.HTTPMiddleware(supertokens.Middleware))
r

rp

03/09/2023, 7:00 AM
hey @LW this is expected.
We differentiate between expected errors (like this one), which yield 200 vs unexpected errors (like the db being down) which yield non 200 http codes
l

LW

03/09/2023, 7:01 AM
i see, great thanks for the confirmation and the fast response @rp 🙏🏼