Jump to content

How to handle 404, 405, 415 statuscodes from within your BW application


Pim Belien

Recommended Posts

Hi all,

 

As per the API standards here I have to respond with a specific error structure for the 4xx and 5xx cases. This includes the cases of returning the 415 (Unsupported Media Type) or the405 (Method Not Allowed) or a 404 (Not Found).

However in any of these cases where for example I send a request with a method im not exposing I automatically get an autogenerated response:

Error 405 Method Not Allowed HTTP ERROR: 405 Problem accessing /trackandtrace/salesandservicerequests/v2. Reason: Method Not Allowed Powered by Jetty://

With one of the hotfixes I am able catch any input violation and handle it accordinglybut that only goes for the resource itself. I sincerely doubt it is possible, but maybe someone found a way around this so I'm asking anyway: Did somebody ever find a way

I am using 6.5.0 HF06

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...