string
then it will send that string as the response's body.int
then it will send it as a status code.error
then it will set a bad request with that error as its reason.error
and an int
then the error code is the output integer instead of 400(bad request).struct
then it sent as a JSON, when a Content-Type header is not already set.struct
and a string
then the second output value, string, it will be the Content-Type and so on.Dispatch
methodPreflight
methodWhere<T>
means any struct value.