Error map

HttpClientErrorException org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized

API · layer 4, Application & API

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

HttpClientErrorException — org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized (API)HttpClientE…invalid_api_key — API Error: Invalid API Key / Incorrect API key provided (API)invalid_api_keyinvalid_token_response — [invalid_token_response] An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response (Authentication)invalid_token_respo…Access is denied — AccessDeniedException: Access is denied (Spring Security 403) (Authentication)Access is deniedauthorization_request_not_found — [authorization_request_not_found] Spring OAuth2 login callback (Authentication)authorization_reque…no suitable HttpMessageConverter — RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type and content type (API)no suitable HttpMes…Bad credentials — Spring Security: BadCredentialsException: Bad credentials (Authentication)Bad credentialsMissingServletRequestParameterException — Spring: Required request parameter 'x' is not present (400) (API)MissingServletReque…Content type not supported — Spring: HttpMediaTypeNotSupportedException: Content type 'text/plain' not supported (415) (API)Content type not su…no PasswordEncoder — IllegalArgumentException: There is no PasswordEncoder mapped for the id "null" (Authentication)no PasswordEncoderdoes not look like BCrypt — WARN: Encoded password does not look like BCrypt (Authentication)does not look like …Full authentication is required — Full authentication is required to access this resource (401) (Authentication)Full authentication…Request method not supported — Spring: HttpRequestMethodNotSupportedException: Request method 'POST' not supported (405) (API)Request method not …401 — HTTP 401 Unauthorized (HTTP)401403 — HTTP 403 Forbidden (HTTP)403TokenExpiredError — JWT Expired / Invalid Token (Authentication)TokenExpiredErrorinvalid_grant — OAuth 2.0 Error: invalid_grant (Authentication)invalid_grantredirect_uri_mismatch — OAuth Error: redirect_uri_mismatch (Authentication)redirect_uri_mismat…invalid_client — OAuth 2.0 Error: invalid_client (Authentication)invalid_clientPERMISSION_DENIED — PERMISSION_DENIED: The caller does not have permission (insufficient permissions) (Authentication)PERMISSION_DENIED401 — 401 because the Authorization header is stripped (HTTP)401invalid_scope — OAuth 2.0 Error: invalid_scope / insufficient_scope (Authentication)invalid_scopeaccess_denied — OAuth 2.0 Error: access_denied (The user or authorization server denied the request) (Authentication)access_deniedunauthorized_client — OAuth 2.0 Error: unauthorized_client (client not allowed to use this grant type) (Authentication)unauthorized_clientLocation — 201 Created without a Location header (clients can't find the new resource) (HTTP)LocationUnexpected token < — SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON (API)Unexpected token <No active account found — {"detail":"No active account found with the given credentials"} (Authentication)No active account f…InvalidPasswordException — AWS Cognito: InvalidPasswordException: Password did not conform with policy (Authentication)InvalidPasswordExce…Invalid user credentials — Keycloak: invalid_grant — Invalid user credentials (Authentication)Invalid user creden…parameter_missing — API Error: Missing required parameter (parameter_missing / "x" is required) (API)parameter_missingIllegal arguments: undefined, string — bcrypt error: Illegal arguments: undefined, string / data and salt arguments required / data and hash arguments required (Authentication)Illegal arguments: …Missing Authentication Token — {"message":"Missing Authentication Token"} / No authorization token was found (Authentication)Missing Authenticat…401 — 401 Unauthorized without WWW-Authenticate header (HTTP)401401 — 401 Bearer error="invalid_token" (HTTP)401

Directly related (12)

invalid_api_keyAPI

API Error: Invalid API Key / Incorrect API key provided

The API didn’t recognise the key sent with the request — it’s wrong, revoked, from another environment, or sent in the wrong plac…

invalid_token_responseAuthentication

[invalid_token_response] An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response

Spring's OAuth2 client could not exchange the authorisation code for a token — the token request failed or the response could not…

Access is deniedAuthentication

AccessDeniedException: Access is denied (Spring Security 403)

The user is authenticated but lacks the role or authority required for the endpoint, so Spring returns 403.

authorization_request_not_foundAuthentication

[authorization_request_not_found] Spring OAuth2 login callback

Spring could not find the saved authorisation request when the provider redirected back, so the login cannot be completed.

no suitable HttpMessageConverterAPI

RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type and content type

Spring's RestTemplate could not convert the response body to the Java type you asked for.

Bad credentialsAuthentication

Spring Security: BadCredentialsException: Bad credentials

Spring Security found the user but the supplied password did not match the stored hash, or the user was not found.

MissingServletRequestParameterExceptionAPI

Spring: Required request parameter 'x' is not present (400)

A mandatory `@RequestParam` is missing.

Content type not supportedAPI

Spring: HttpMediaTypeNotSupportedException: Content type 'text/plain' not supported (415)

The controller does not consume the Content-Type sent.

no PasswordEncoderAuthentication

IllegalArgumentException: There is no PasswordEncoder mapped for the id "null"

Spring Security's delegating encoder expects stored passwords to start with `{id}` such as `{bcrypt}`; yours has no prefix.

does not look like BCryptAuthentication

WARN: Encoded password does not look like BCrypt

BCryptPasswordEncoder was asked to match a stored value that is not a BCrypt hash, so login always fails.

Full authentication is requiredAuthentication

Full authentication is required to access this resource (401)

The request reached a protected Spring endpoint without valid credentials, so the entry point answers 401.

Request method not supportedAPI

Spring: HttpRequestMethodNotSupportedException: Request method 'POST' not supported (405)

The path exists but not for that HTTP method.

Two steps away (21)

401HTTP

HTTP 401 Unauthorized

The request has no valid authentication credentials — you need to log in or send a valid token.

403HTTP

HTTP 403 Forbidden

The server understood the request but refuses to authorize it — you (or the server process) are not allowed to access this resour…

TokenExpiredErrorAuthentication

JWT Expired / Invalid Token

The JSON Web Token sent with the request is expired, malformed or signed with a different key, so the API rejects it (usually wit…

invalid_grantAuthentication

OAuth 2.0 Error: invalid_grant

The authorization code, refresh token or credentials sent to the token endpoint are invalid, expired, already used or were issued…

redirect_uri_mismatchAuthentication

OAuth Error: redirect_uri_mismatch

The redirect URI in your OAuth request doesn’t exactly match one registered for the client in the provider’s console.

invalid_clientAuthentication

OAuth 2.0 Error: invalid_client

The OAuth server couldn’t authenticate your application — wrong client ID/secret, wrong auth method, or the client doesn’t exist…

PERMISSION_DENIEDAuthentication

PERMISSION_DENIED: The caller does not have permission (insufficient permissions)

You are authenticated, but your identity isn’t allowed to perform this action on this resource.

401HTTP

401 because the Authorization header is stripped

The client sends credentials, but a proxy, CGI/FastCGI setup or redirect removes the Authorization header before your app sees it.

invalid_scopeAuthentication

OAuth 2.0 Error: invalid_scope / insufficient_scope

The requested scope is unknown or not allowed for this client — or the token lacks the scope the API endpoint requires.

access_deniedAuthentication

OAuth 2.0 Error: access_denied (The user or authorization server denied the request)

The authorization request was refused — the user clicked Cancel/Deny on the consent screen, or a policy denied access.

unauthorized_clientAuthentication

OAuth 2.0 Error: unauthorized_client (client not allowed to use this grant type)

The client exists, but isn’t allowed to use the requested flow (grant type or response type).

LocationHTTP

201 Created without a Location header (clients can't find the new resource)

The API created a resource but doesn't say where it lives, so clients must guess or re-query.

Unexpected token <API

SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Your code called `response.json()` but the API returned an HTML page (usually an error page), not JSON.

No active account foundAuthentication

{"detail":"No active account found with the given credentials"}

Simple JWT's login endpoint did not find an active user matching the username and password.

InvalidPasswordExceptionAuthentication

AWS Cognito: InvalidPasswordException: Password did not conform with policy

The password does not meet the user pool's password policy.

Invalid user credentialsAuthentication

Keycloak: invalid_grant — Invalid user credentials

Keycloak rejected the username/password in a password grant.

parameter_missingAPI

API Error: Missing required parameter (parameter_missing / "x" is required)

The API rejected the request because a field it requires — in the query string, path, headers or JSON body — wasn’t sent or was e…

Illegal arguments: undefined, stringAuthentication

bcrypt error: Illegal arguments: undefined, string / data and salt arguments required / data and hash arguments required

bcrypt.compare/hash received undefined — the password field or stored hash wasn’t passed.

Missing Authentication TokenAuthentication

{"message":"Missing Authentication Token"} / No authorization token was found

The request reached a protected endpoint without credentials — or, on AWS API Gateway, it hit a path/method that doesn’t exist.

401HTTP

401 Unauthorized without WWW-Authenticate header

The server answered 401 but didn't say which authentication scheme to use.

401HTTP

401 Bearer error="invalid_token"

The API rejected the bearer token as expired, malformed, revoked or not meant for this API.