You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the reverse proxy fails to contact the underlying host, it sends back an error page. This error page defaults to HTML, which is annoying since every other page that could be returned from this site is in JSON.
We should make a 502 error page that returns JSON that looks like the JSON returned by every other error:
We need to configure Apache to use this error page for the api.cpantesters.org and metabase.cpantesters.org sites (configuration files are in etc/apache2/vhost). The configuration should be sure to send the file with the correct Content-Type header to ensure clients treat it as JSON.
The text was updated successfully, but these errors were encountered:
When the reverse proxy fails to contact the underlying host, it sends back an error page. This error page defaults to HTML, which is annoying since every other page that could be returned from this site is in JSON.
We should make a 502 error page that returns JSON that looks like the JSON returned by every other error:
We need to configure Apache to use this error page for the
api.cpantesters.org
andmetabase.cpantesters.org
sites (configuration files are inetc/apache2/vhost
). The configuration should be sure to send the file with the correctContent-Type
header to ensure clients treat it as JSON.The text was updated successfully, but these errors were encountered: