protected static String detailedResponse(int status,String method,String resource) {
        String response;
        switch(status){
            case 400:
                    response="Your browser sent a request that this server could not understand.";
                    break;
            case 404:
                    response="The requested URL "+resource+" was not found on this server.";
                    break;
            case 501:
                    response=method+" to "+resource+" not supported.";
                    break;
            default:
                    response="Error detail not implemented";
                    break;
        }
        return response;
    }