Create a response with HTTP status code 403 - Forbidden.
(errmsg='')
| 106 | |
| 107 | |
| 108 | def forbidden(errmsg=''): |
| 109 | """Create a response with HTTP status code 403 - Forbidden.""" |
| 110 | return make_json_response( |
| 111 | status=403, |
| 112 | success=0, |
| 113 | errormsg=errmsg |
| 114 | ) |
| 115 | |
| 116 | |
| 117 | def unauthorized(errormsg=''): |
no test coverage detected