From c47a47d5c9f5f87edcf6d2700bf519db2959ef52 Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Mon, 13 Nov 2023 10:18:55 -0700 Subject: [PATCH] Refine remote_key error codes --- includes/class-signature.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-signature.php b/includes/class-signature.php index 7632139..30818fb 100644 --- a/includes/class-signature.php +++ b/includes/class-signature.php @@ -336,7 +336,7 @@ class Signature { return new WP_Error( 'activitypub_no_remote_profile_found', __( 'No Profile found or Profile not accessible', 'activitypub' ), - array( 'status' => 401 ) + array( 'status' => 404 ) ); } if ( isset( $actor['publicKey']['publicKeyPem'] ) ) { @@ -345,7 +345,7 @@ class Signature { return new WP_Error( 'activitypub_no_remote_key_found', __( 'No Public-Key found', 'activitypub' ), - array( 'status' => 401 ) + array( 'status' => 404 ) ); }