Re-order option processing to allow JSON responses to set their status.