Django, API, REST, Authentication. The default authentication schemes may be set globally, using the When an unauthenticated request is denied permission there are two different error codes that may be appropriate. HTTP 401 . Warning: Always use Django's standard login view when creating login pages. This will .