class AbstractApi {

	protected static WebApplicationException createJsonApiException(String message, Response.Status code) {
		return new WebApplicationException(
				JsonApiResponse
						.createExceptionResponse(code)
						.message(message)
						.build());
	}

}