# Defining responses

Define one or several responses for your operation.

## Procedure

1. To add responses to your operation, click the name of the operation, scroll down to the Responses section and click Add.
2. Select a Status code and add a Description if needed.

   You can select:
   * A specific status code such as 200.
   * A response range such as 2XX.
   * A Default response.

   ![Responses section and Status code drop-down list.](https://help.qlik.com/talend/en-US/api-designer-user-guide/Resources/images/defining-responses-api.png)
3. To add a header, in the Headers section, click Headers.
4. Click Add header.

   ![Headers field in Responses section.](https://help.qlik.com/talend/en-US/api-designer-user-guide/Resources/images/responses-headers-api.png)
5. Enter the following information:
   * Name: Start typing a name to see a drop-down list of headers.
   * Type: You can use a reusable data type.
   * More attributes are available to edit your header.
   ### Example

   ![Screenshot of the list of headers that start with "Content".](https://help.qlik.com/talend/en-US/api-designer-user-guide/Resources/images/defining_responses_1.png)
6. Click Add.