ListenerRuleFixedResponseConfig

data class ListenerRuleFixedResponseConfig(val contentType: String? = null, val messageBody: String? = null, val statusCode: String)

Specifies information required when returning a custom HTTP response.

Constructors

Link copied to clipboard
constructor(contentType: String? = null, messageBody: String? = null, statusCode: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val contentType: String? = null

The content type. Valid Values: text/plain | text/css | text/html | application/javascript | application/json

Link copied to clipboard
val messageBody: String? = null

The message.

Link copied to clipboard

The HTTP response code (2XX, 4XX, or 5XX).