

# FixedResponseActionConfig


Information about an action that returns a custom HTTP response.

## Contents


 ** StatusCode **   
The HTTP response code (2XX, 4XX, or 5XX).  
Type: String  
Pattern: `^(2|4|5)\d\d$`   
Required: Yes

 ** ContentType **   
The content type.  
Valid Values: text/plain \$1 text/css \$1 text/html \$1 application/javascript \$1 application/json  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 32.  
Required: No

 ** MessageBody **   
The message.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/elasticloadbalancingv2-2015-12-01/FixedResponseActionConfig) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/elasticloadbalancingv2-2015-12-01/FixedResponseActionConfig) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/elasticloadbalancingv2-2015-12-01/FixedResponseActionConfig) 