Return JSON instead of HTML for request status