src/main/java/edu/ucla/library/bucketeer/handlers/AbstractBucketeerHandler.java
protected void returnError(final HttpServerResponse aResponse, final String aMessageCode) {
        final Logger logger = getLogger();
        final String errorMessage = logger.getMessage(aMessageCode);

        logger.error(errorMessage);

        aResponse.setStatusCode(HTTP.INTERNAL_SERVER_ERROR);
        aResponse.setStatusMessage(errorMessage);
        aResponse.end();
    }
/**
     * Returns a 500 error.
     *
     * @param aResponse A response to return
     * @param aMessageCode A message code corresponding to the error message
     */
Returns a 500 error.
@param aResponse A response to return
@param aMessageCode A message code corresponding to the error message
Returns a 500 error . @param aResponse A response to return @param aMessageCode A message code corresponding to the error message
protected void returnError(final HttpServerResponse aResponse, final String aMessageCode) {
        final Logger logger = getLogger();
        final String errorMessage = logger.getMessage(aMessageCode);
        logger.error(errorMessage);
        aResponse.setStatusCode(HTTP.INTERNAL_SERVER_ERROR);
        aResponse.setStatusMessage(errorMessage);
        aResponse.end();
    }
protected void returnError ( final HttpServerResponse aResponse , final String aMessageCode ) { final Logger logger = getLogger ( ) ; final String errorMessage = logger . getMessage ( aMessageCode ) ; logger . error ( errorMessage ) ; aResponse . setStatusCode ( HTTP . INTERNAL_SERVER_ERROR ) ; aResponse . setStatusMessage ( errorMessage ) ; aResponse . end ( ) ; }
Returns a 500 error.
Returns a 500 error .