# Functions
NewError constructs a new error with the supplied status code and message.
StatusCode extracts the HTTP status code associated with an error, falling back to 500 Internal Server Error if none has been specified.
WrapError wraps a status code around an existing error.