def _error_object(code, message):
    """
    Construct a dictionary containing all the fields an error should have
    Parameters:
        code(int): error code, >0 is HTML, <=0 are internal error codes
        message(string): error message
    Returns:
        Dictionary with errors, code, and reason keys
    """
    return {'errors': [message], 'code':code, 'reason': message}