Show / Hide Table of Contents

Class ReturnHttpResponseAction

An object that represents an action which returns a defined HTTP response.

Inheritance
object
Action
ReturnHttpResponseAction
Inherited Members
Action.Name
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.WafService.Models
Assembly: OCI.DotNetSDK.Waf.dll
Syntax
public class ReturnHttpResponseAction : Action

Properties

Body

Declaration
[JsonProperty(PropertyName = "body")]
public HttpResponseBody Body { get; set; }
Property Value
Type Description
HttpResponseBody

Code

Declaration
[Required(ErrorMessage = "Code is required.")]
[JsonProperty(PropertyName = "code")]
public int? Code { get; set; }
Property Value
Type Description
int?

Response code.
The following response codes are valid values for this property:

  • 2xx
    200 OK 201 Created 202 Accepted 206 Partial Content
  • 3xx
    300 Multiple Choices 301 Moved Permanently 302 Found 303 See Other 307 Temporary Redirect
  • 4xx
    400 Bad Request 401 Unauthorized 403 Forbidden 404 Not Found 405 Method Not Allowed 408 Request Timeout 409 Conflict 411 Length Required 412 Precondition Failed 413 Payload Too Large 414 URI Too Long 415 Unsupported Media Type 416 Range Not Satisfiable 422 Unprocessable Entity 429 Too Many Requests 494 Request Header Too Large 495 Cert Error 496 No Cert 497 HTTP to HTTPS
  • 5xx
    500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Timeout 507 Insufficient Storage
    Example: 200
Remarks

Required

Headers

Declaration
[JsonProperty(PropertyName = "headers")]
public List<ResponseHeader> Headers { get; set; }
Property Value
Type Description
List<ResponseHeader>

Adds headers defined in this array for HTTP response.
Hop-by-hop headers are not allowed to be set:

  • Connection
  • Keep-Alive
  • Proxy-Authenticate
  • Proxy-Authorization
  • TE
  • Trailer
  • Transfer-Encoding
  • Upgrade
In this article
Back to top