@Retention(value=RUNTIME)
@Target(value={java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.TYPE})
@Documented
public @interface HttpStatusCodeMapping
This annotation should be used for mapping UES Exceptions to HTTP status codes. It could be used for REST, SOAP or other services that are using
the HTTP protocol for communication.
By default all server exceptions are mapped as HttpErrorStatus.INTERNAL_SERVER_ERROR
. The HTTP errors are defined as 4xx for client side
problems, and 5xx for server-side problems.
The annotation could be used on any UES-Exception or on its ErrorCodes.
- Since:
- UES7-04