Examples of using Method response in English and their translations into German
{-}
-
Colloquial
-
Official
-
Ecclesiastic
-
Medicine
-
Financial
-
Ecclesiastic
-
Political
-
Computer
-
Programming
-
Official/political
-
Political
HTTP status code for the method response; for example,"200.
In API Gateway,an API method embodies a method request and a method response.
API Gateway then routes it to Method Response before sending it to the client.
If no method response is defined for the returned status code, API Gateway returns a 500 error.
The following AWS CLI command creates a method response of 200.
In principle, you can define a method response corresponding to a specific response from the backend.
To add or edit documentation for a response, go to Method Response of a method. .
Also, a method response payload model is important if you are generating a strongly typed SDK for your API.
In any case, you must set up at least one method response for non-proxy integrations.
As with any integration response, you can pass through this error response as-is to the method response.
Method response parameters define which headers the client receives in response to the associated method request.
The response parameters from the backend response that API Gateway sends to the method response.
In practice, you can designate one method response as the default to handle the unknown or unmapped responses from the backend.
If you do not use the proxy integration with the VpcLink, you must also set up at least a method response of the 200 status code.
If enabled, for Method response status, choose the HTTP response status code you defined in the Method Response page.
For every response returned from the backend,you must have a compatible response configured as the method response.
You can specify such mapping by configuring Method Response and Integration Response from the Method Execution page.
Defines a response and specifies parameter mappings or payload mappings from the integration response to the method response.
For the 302 response, the method response returns a Location header whose value is derived from the redirect. url property on the integration response's payload.
Depending on your API requirements,you may need to pass some or all of the custom error properties as method response header parameters.
For output, you determine the method response status code, headers, and applicable body as targets to map the backend response data into, before they are returned to the client.
For our API to return successful responses and exceptions properly to the caller, let us declare the 200,400 and 500 responses in Method Response.
We also explain how to define a Result schema to model the method response body so thatany strongly typed SDK of the API can access the method response data through properties defined in the Result schema.
Setting up an integration response, applicable to non-proxy integrations only, involves the following:configuring how to pass the backend-returned result to a method response of a given status code, configuring how to transform specified integration response parameters to preconfigured method response parameters, and configuring how to map the integration response body to the method response body according to the specified body-mapping templates.