Parse.Cloud. FunctionResponse

Properties
NameTypeDescription
successfunction

Call this function to return a successful response with an optional result. Usage: response.success(result)

errorfunction

Call this function to return an error response with an error message. Usage: response.error(message)

statusfunction

Call this function to set a custom HTTP status code for the response. Returns the response object for chaining. Usage: response.status(code).success(result) or response.status(code).error(message)

headerfunction

Call this function to set a custom HTTP header for the response. Returns the response object for chaining. Usage: response.header('X-Custom-Header', 'value').success(result)