Request: Change Status Code to 404 for CDN Package Builder failures?
Request: Change Status Code to 404 for CDN Package Builder failures?
Hey all,
We would it if you could update the Builder's response to return a 404 if it's not going to return CSS/JS.
Here's the scenario:
If you have a reference to the DataTables CDN, such as <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.10/datatables.min.css"/>, and any version number in the request is old, the builder will return a message that says, "Error: Only libraries of the current release version can be used by the. package builder. The library DataTables's current release version is [version number]. Please reload the download builder page to have it use the latest libraries."
That's super helpful; however, the response is still a 200, which doesn't let us automate a notice to go and update websites.
Would you consider returning a 404 instead?
Thanks!
Matt Snow
Director of Creative Services
Oregon Information Division of NICUSA (Oregon.gov)
This question has an accepted answers - jump to answer
Answers
Hi Matt,
Thanks for the suggestion. I completely agree and have implemented this now.
Regards,
Allan