1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-03-03 07:59:15 +01:00
phorge-phorge/src
Joshua Spence 41a8837f78 Make HTTP errors returned from the Aphlict server more specific
Summary: Ref T5651. Currently, the Aphlict server returns either `200 OKAY` or `400 Bad Request`. We could return more specific errors in some cases and this may assist with debugging.

Test Plan:
Sent myself a test notification at `/notification/status/` and saw the Aphlict server process the request (running in debug mode). Also poked around with `curl`:

```
> curl http://localhost:22281/
405 Method Not Allowed

> curl http://localhost:22281/ -d ""
400 Bad Request

> curl http://localhost:22281/foobar/
404 Not Found
```

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5651

Differential Revision: https://secure.phabricator.com/D9967
2014-07-18 09:01:46 +10:00
..
__tests__ Minor change to PhutilInfrastructureTestCase 2014-07-10 07:36:14 +10:00
aphront Remove @group annotations 2014-07-10 08:12:48 +10:00
applications Make HTTP errors returned from the Aphlict server more specific 2014-07-18 09:01:46 +10:00
docs Remove all edge events 2014-07-17 15:41:42 -07:00
extensions Add src/extensions/ to Phabricator 2013-08-14 15:38:06 -07:00
infrastructure Remove partial objects from Lisk 2014-07-17 15:49:21 -07:00
view Modernize "owner" typeahead datasource 2014-07-17 15:49:00 -07:00
__phutil_library_init__.php Delete license headers from files 2012-11-05 11:16:51 -08:00
__phutil_library_map__.php Modernize "owner" typeahead datasource 2014-07-17 15:49:00 -07:00