mirror of
https://github.com/friendica/friendica
synced 2025-05-09 22:24:09 +02:00
Improved error messages
This commit is contained in:
parent
8a5560ec8f
commit
9125d296a1
17 changed files with 20 additions and 20 deletions
|
@ -43,7 +43,7 @@ class ListTimeline extends BaseApi
|
|||
$uid = self::getCurrentUserID();
|
||||
|
||||
if (empty($parameters['id'])) {
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
}
|
||||
|
||||
// Return results older than id
|
||||
|
|
|
@ -44,7 +44,7 @@ class Tag extends BaseApi
|
|||
$uid = self::getCurrentUserID();
|
||||
|
||||
if (empty($parameters['hashtag'])) {
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
}
|
||||
|
||||
// If true, return only local statuses. Defaults to false.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue