Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Change Error Messages Sent In Api Rate Topic   - - - - -

 

Posted 15 December 2020 - 12:36 PM #1

Hi there!

We currently have a website and in progress of developing an application.

In the app, when the user logs in with incorrect credentials then a 404 status with some message is sent, which actually gives the user no idea what went wrong.

 

This is one example. Many other APIs are giving a very generalized status and message.

 

Hence I want to know a way by which we can change the error messages that are sent in response in API.

 

Currently getting - (after wrong credentials)

{
    "message""Not Found",
    "status"404
}

 

 

Also if you have any answer please keep in mind that it has to be language dependent.