REST Error message response - Returning Error Messages

  • 1 March 2022
  • 1 reply
  • 4 views

Hello Community,

 

I've been trying to get a response back from my REST endpoint to identify errors.  

 

I am using RestUnided.com to format the model for errors. In the Endpoint definition I selected the return if there was an error.  When I reuploaded that JSON, K2 created a new SmO with the error model however there were no updates to the main response.  When attempting the request with the error I still receive the same return values with no error messages.

 

 

{ "Guid" : "xxxxxxxxxxxxxxxxxxxxxxxx", "Error_Type" : "ERROR", "Error_message" : "Nonexistent Id xxxxxxx for the Account", "Status code" : "USER_ERROR" }

 

 

Wanted to see if anyone is familiar with this setup.

Thanks,
David


1 reply

Userlevel 3
Badge +9

Does your endpoint return HTTP error codes as part of its response?


 


Can you at all post an example normal and error response that you do get back from the service and your JSON file here?


 


Cheers

Reply