Set HTTP status on API responses