Rest API - Error Handling
What will be the HTTP status code returned by this REST API snippet when a user tries to access a resource without permission?
if not user.has_permission:
return {"error": "Forbidden"}, 403What will be the HTTP status code returned by this REST API snippet when a user tries to access a resource without permission?
if not user.has_permission:
return {"error": "Forbidden"}, 40315+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions