# Functions
ErrorToJSON converts an error type to JSON and writes to provided writer.
# Structs
BadRequest - HTTP error for 400 error code.
InternalServerError - HTTP error for 500 error code.
NotFound - HTTP error for 404 error code.
# Interfaces
HTTPError is the universal interface for all HTTPError 's it includes their StatusCode()and a StatusMessage() which contains a short description of the error.