Improved error messages
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user