🔟
🔟
JCHJava Community | Help. Code. Learn.
Created by 🔟 on 3/27/2025 in #java-help
Error handling
I am getting the following feedback : --------------------------- Platform Feedback Below ---------------------------- Some customers reported that the service is returning client errors that break their retry logic: 400 is an unexpected status code SRE Says: your solution is not working well enough to be promoted to production the requirement says I need to: GET /company?id=XX&country_iso=YY. This API endpoint receives the parameters id and country_iso. id can be a string without any particular limitation. country_iso will be a two-letter country code to select the backend according to the application configuration. Your solution must query the backend in a proper country and return: - An HTTP 200/OK reply when the company with the requested id exists on the corresponding backend. The body should be a JSON object with the company data returned by a backend. - An HTTP 404/Not Found reply if the company with the requested id does not exist on the corresponding backend. Im not sure where im going wrong in my error handling. Any help or advice would be appreciated
10 replies
JCHJava Community | Help. Code. Learn.
Created by 🔟 on 3/24/2025 in #java-help
Feedback on Spring Boot Project
No description
6 replies