Token url only returns 200 OK as status?

Token url only returns 200 OK as status?

by Jackie Smile -
Number of replies: 1

Hello,

I experimented with the moodle/login/token.php file to return a token for certian credentials.

Returning the token is not a problem, however even when the credentials are wrong the HTTP status code returned is always 200 OK. Is there a way to distinguish that automatically without analysing the error message returned by Moodle?

 

Regards

jackie

Average of ratings: -
In reply to Jackie Smile

Re: Token url only returns 200 OK as status?

by Jackie Smile -

Looks like it is not the only file that only returns 200. That is strange. That means you only use the error message to distinguish what's going on with each request? Is there a list that provides an overview about possible error messages?

Cheers