In this field... | Do the following... | ||
Status Code | Select a HTTP response status code number. Examples HTTP 200 OK HTTP 400 Bad Request HTTP Error 404 Not Found HTTP Error 500 Internal Server Error | ||
Name | This is a label that you assign as a meaningful name for the HTTP response. For example, you may call a HTTP 400 response as Validation Error, instead of the Bad Request. | ||
Description | Optional. Enter a comment or descriptive information about the response. | ||
Response Content-Type | Select the content format for response message. (The drop-down list displays the list of supported content formats.)
| ||
Schema | Optional. Specify a HTTP response message (payload) using either XML schema or JSON schema. | ||
Inline or External File | Specify whether the schema definition will be read from an inline text (the Inline option) or from an external file or URL (the External File option). If you want to use an inline schema, specify the schema definition manually in the Inline text box. If the schema definition you are uploading resides on the network, specify its URL. If the schema definition resides in an external file, specify the file name. You can use the Browse button to navigate to the required folder.
| ||
Example | Optional. Specify a HTTP response message (payload) using examples to show how a schema is used. An example is simply an XML code or JSON code. | ||
Inline or External File | Specify whether the example will be read from an inline example code (the Inline option) or from an external file or URL (the External File option). If you want to use an inline example, specify the example code manually in the Inline text box. If the example definition you are uploading resides on the network, specify its URL. If the example definition resides in an external file, specify the file name. You can use the Browse button to navigate to the required folder.
| ||
Headers - Add Header (link) | Optional. Specify one or more headers that you want to include in the HTTP response.
a. Click the Add Header link. b. In the Add Header dialog box, specify the required fields. |