Base solution for your next web application
Open Closed

API error code #7485


User avatar
0
peopleteq created

Hi,

I am using dynamic API. I would like to know if it is possible to return always 200 http status code and use error code files on API response. Currently I am getting API error via http response status and error code field is always 0.

Thanks


4 Answer(s)
  • User Avatar
    0
    peopleteq created

    Sorry, error code field - error. Error field is always null

  • User Avatar
    0
    peopleteq created

    Sorry again. Error is not null in case of exception. Is it possible return 200 status code and error code in payload?

  • User Avatar
    0
    maliming created
    Support Team

    You can see if this discussion is what you need. https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4784

  • User Avatar
    0
    peopleteq created

    Thanks for info