> ## Documentation Index
> Fetch the complete documentation index at: https://developers.authlete.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Suppressing Error Details in responseContent

> Suppressing error details in responseContent by utilizing the responseContent parameter in Authlete APIs for authorization servers.

<Info>
  For **Authlete 2.x** documentation, see [2.x version](/v2/configuration-reference/service-setup/suppressing-error-details-in-responsecontent).
</Info>

# Suppressing Error Details

Some Authlete APIs include a `responseContent` parameter in their responses. This parameter is designed to be used by an authorization server as the response content sent back to a client.

By default, the `responseContent` parameter contains error details. For instance, if you send a request to Authlete's [/auth/authorization](/api-reference/authorization-endpoint/process-authorization-request) API with an empty value for the `parameters` parameter (which is invalid for an authorization request), the API will return the following response:

## Sample Request

```bash theme={null}
curl -s -X POST $apiUrl/auth/authorization \
-H 'Authorization: Bearer ${SERVICE_ACCES_TOKEN}' \
-H 'Content-Type: application/json' \
-d '{"parameters":""}'
```

## Sample Response

```bash theme={null}
[...]
"action": "BAD_REQUEST",
"responseContent":
  "{\"error_description\":
      \"[A004301] The authorization request does not contain any request parameters.\",
    \"error\":
      \"invalid_request\",
    \"error_uri\":
      \"https://docs.authlete.com/#A004301\"}",
[...]
```

The `error_description` and `error_uri` parameters in `responseContent` are Authlete's own error details. They are useful for client applications and user agents to resolve problems during development and testing, but may be unnecessary in production.

For production deployment, Authlete recommends disabling both **Include Error Description** and **Include Error URI** settings to suppress detailed error outputs.

## Authlete Configuration

To suppress error details, update the following settings in the **"Error Details"** section of the target Authlete service:

1. Navigate to **Service Settings > Endpoints > Global Settings**.
2. Scroll down to the **Error Details** section.
3. Toggle **Include Error Description** and **Include Error URI** to the "off" position.

![suppressing-error-details-in-responsecontent\_1](https://storage.googleapis.com/authlete-website/resources/kb/suppressing-error-details-in-responsecontent/1.png)

If both settings are "off", the response to the request mentioned above will appear as follows:

```bash theme={null}
[...]
"action": "BAD_REQUEST",
"responseContent": "{\"error\":\"invalid_request\"}",
[...]
```
