Function rejectRequest(message:code:)
public func rejectRequest(message: String?, code: Int?) -> String
This function rejects the admission request as invalid
Parameters
Name | Type | Description |
---|---|---|
message | String? |
the optional message to provide to the user |
code | Int? |
the optional code identifying the rejection |
Returns
A ValidationResponse
object serialized to JSON