ocket8888 commented on issue #2631: URL: https://github.com/apache/trafficcontrol/issues/2631#issuecomment-736699653
This may not be a good idea. Current practices are to never expose underlying service state via API responses - from the [API Guidelines](https://traffic-control-cdn.readthedocs.io/en/latest/development/api_guidelines.html): > ### 500 Internal Server Error > When the Traffic Ops server encounters some error - through no fault of the client or their request - that renders it incapable of servicing the client’s request, it MUST return this status code if no other code is more appropriate. The response body in this case SHOULD indicate that an error occurred, but MUST NOT divulge details about what data was being processed, what (if any) other components are not functioning properly, or what process failed. Generally it is advisable that the resultant alerts array entry just say “Internal Server Error” and nothing else. If you feel this is not a good practice, please bring it up to the mailing list. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
