MT#3997 Use JSON in OPTIONS methods.
MT#3997 Return JSON on precondition failures.