# Functions

LoggingMiddleware logs the incoming HTTP request & its duration.
RespondWithError writes the given error code and message to the writer.
RespondWithJSON writes the given payload marshalled as JSON to the writer.