added headers and status to response