src/main/java/edu/ucla/library/bucketeer/handlers/LoadImageHandler.java
private void returnError(final HttpServerResponse aResponse, final int aErrorCode, final Throwable aThrowable) {
        LOGGER.error(aThrowable, aThrowable.getMessage());

        aResponse.setStatusCode(aErrorCode);
        aResponse.putHeader(Constants.CONTENT_TYPE, Constants.TEXT).end(aThrowable.getMessage());
        aResponse.close();
    }
/**
     * Return an error to the HTTP requester.
     *
     * @param aResponse An HTTP response
     * @param aThrowable An exception
     */
Return an error to the HTTP requester.
@param aResponse An HTTP response
@param aThrowable An exception
Return an error to the HTTP requester . @param aResponse An HTTP response @param aThrowable An exception
private void returnError(final HttpServerResponse aResponse, final int aErrorCode, final Throwable aThrowable) {
        LOGGER.error(aThrowable, aThrowable.getMessage());
        aResponse.setStatusCode(aErrorCode);
        aResponse.putHeader(Constants.CONTENT_TYPE, Constants.TEXT).end(aThrowable.getMessage());
        aResponse.close();
    }
private void returnError ( final HttpServerResponse aResponse , final int aErrorCode , final Throwable aThrowable ) { LOGGER . error ( aThrowable , aThrowable . getMessage ( ) ) ; aResponse . setStatusCode ( aErrorCode ) ; aResponse . putHeader ( Constants . CONTENT_TYPE , Constants . TEXT ) . end ( aThrowable . getMessage ( ) ) ; aResponse . close ( ) ; }
Return an error to the HTTP requester.
Return an error to the HTTP requester .