Create a response with HTTP status code 401 - Unauthorized.
(errormsg='')
| 115 | |
| 116 | |
| 117 | def unauthorized(errormsg=''): |
| 118 | """Create a response with HTTP status code 401 - Unauthorized.""" |
| 119 | return make_json_response( |
| 120 | status=401, |
| 121 | success=0, |
| 122 | errormsg=errormsg |
| 123 | ) |
| 124 | |
| 125 | |
| 126 | def bad_request(errormsg=''): |
no test coverage detected