Respecting HTTP status code