Skip to main content

Recipe: Unauthorized access (401 & 403) error

Examples where this could apply:

  • The user is attempting to take an action that requires they are currently logged in
  • The user is logged in, but they do not have the required permissions to access a resource
  • When attempting to make a change that violates some constraint such as duplicating a unique key
  • When the service requires different parameters than those that were provided