public class ApiException
Base exception for errors in the API framework.
In general, we don't want developers having to think about http status codes or rendering responses to the user.
This exception hierarchy is designed to abstract the http logic away so the developer can concentrate on implementing
services logic. The framework will attempt to render errors in a consistent way.
Default status is STATUS_INTERNAL_SERVER_ERROR = 500.