Package writer contains utilities for writing responses in the server.
Bytes writes a response with the specified status code and bytes.
Error writes a response with specified status and error response.
ErrorAuto writes a response with status and code set automatically based on the type of err.
ErrorString writes a response with specified status, code, and message set to the the err's string representation.
HTTPStatus is used to set a specific status code Adapted from https://stackoverflow.com/questions/27711154/what-response-code-to-return-on-a-non-supported-http-method-on-rest
JSON writes a response with the specified status code and object. The object will be JSON serialized.