mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
Improved error messages
This commit is contained in:
parent
8a5560ec8f
commit
9125d296a1
17 changed files with 20 additions and 20 deletions
|
@ -42,7 +42,7 @@ class Statuses extends BaseApi
|
|||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
if (empty($parameters['id'])) {
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
}
|
||||
|
||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($parameters['id'], self::getCurrentUserID()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue