Pim Belien Posted March 13, 2019 Share Posted March 13, 2019 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 More sharing options...
Aditya Wagle Posted April 8, 2019 Share Posted April 8, 2019 Please have a lookathttps://docs.tibco.com/pub/activematrix_businessworks/6.5.1/doc/html/GUI... This should help you add Custom status lines for Error codes and even custom reponse body if you would like to do that. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now