# Functions
AccessControlAllowOrigin verifies HTTP header "Origin".
IsUnauthorizedError returns true if an error is because of unauthorized request.
# Variables
ErrNotABearerToken is returned when provided auth header is not a valid bearer token.
HandleError handles error and returns appropriate HTTP status code and error details as JSON.