Generate a error response body to be sent for a bad message. In this case there is something wrong with the request, so either a request cannot be built, or it is not safe to build a request. This method allows for a simple error page body to be returned and some response headers to be set. @param status The error code that will be sent @param reason The reason for the error code (may be null) @param fields The header fields that will be sent with the response. @return The content as a ByteBuffer, or null for no body.
|
|
|
|
|
|