header('Content-type: application/json'); $response->status = "error"; $response->status_message = "Unauthorized Access"; echo json_encode($response);