HomeSoftware Heritage

api_route: Ensure never_cache is honored for all response status codes

Description

api_route: Ensure never_cache is honored for all response status codes

Previously never cache headers were only added for responses with status code
200 but error responses must also be considered.

So move never_cache parameter handling of api_route decorator from apiurls
module to apiresponse one.

Related to T2774

Details