mirror of
https://github.com/friendica/friendica
synced 2025-04-27 00:30:10 +00:00
Improved http error handling
This commit is contained in:
parent
b2165cdf22
commit
4236a9a105
55 changed files with 282 additions and 135 deletions
|
@ -96,7 +96,9 @@ class Receive extends BaseModule
|
|||
if (Diaspora::dispatch($importer, $msg)) {
|
||||
throw new HTTPException\OKException();
|
||||
} else {
|
||||
throw new HTTPException\InternalServerErrorException();
|
||||
// We couldn't process the content.
|
||||
// To avoid the remote system trying again we send the message that we accepted the content.
|
||||
throw new HTTPException\AcceptedException();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue