standardnotes / syncing-server

[Deprecated: Use our new Node server: https://github.com/standardnotes/syncing-server-js]
https://standardnotes.org
GNU Affero General Public License v3.0
209 stars 48 forks source link

HTML response for forbidden API call #191

Open jonhadfield opened 3 years ago

jonhadfield commented 3 years ago

When making an API call that results in an HTTP 403 response, HTML is returned:


<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>

Shouldn't this be JSON?

This is sporadically triggered against: https://sync.standardnotes.org (unknown reason) so may be AWS infrastructure returning, rather than server code.

JaspalSuri commented 3 years ago

Hi @johnny243, thanks for bringing this to our attention; I've passed this along to the dev team for further review. 🙂

jonhadfield commented 3 years ago

I often get emails with "Hi John," but this is my first one on GitHub 🙂