Refine remote_key error codes
This commit is contained in:
parent
a764004a42
commit
c47a47d5c9
1 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ class Signature {
|
||||||
return new WP_Error(
|
return new WP_Error(
|
||||||
'activitypub_no_remote_profile_found',
|
'activitypub_no_remote_profile_found',
|
||||||
__( 'No Profile found or Profile not accessible', 'activitypub' ),
|
__( 'No Profile found or Profile not accessible', 'activitypub' ),
|
||||||
array( 'status' => 401 )
|
array( 'status' => 404 )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ( isset( $actor['publicKey']['publicKeyPem'] ) ) {
|
if ( isset( $actor['publicKey']['publicKeyPem'] ) ) {
|
||||||
|
@ -345,7 +345,7 @@ class Signature {
|
||||||
return new WP_Error(
|
return new WP_Error(
|
||||||
'activitypub_no_remote_key_found',
|
'activitypub_no_remote_key_found',
|
||||||
__( 'No Public-Key found', 'activitypub' ),
|
__( 'No Public-Key found', 'activitypub' ),
|
||||||
array( 'status' => 401 )
|
array( 'status' => 404 )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue