Using decorator to set http_status.