From 062a2d6b15fe610d90f34085a3d7f14cf73765c6 Mon Sep 17 00:00:00 2001 From: Douglas Johnson Date: Mon, 23 Oct 2023 18:28:36 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20misuse=20the=20406=20response?= =?UTF-8?q?=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- php/api/endpoints/class-coauthors-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/api/endpoints/class-coauthors-controller.php b/php/api/endpoints/class-coauthors-controller.php index 1c9da7f4..6f4ff03e 100644 --- a/php/api/endpoints/class-coauthors-controller.php +++ b/php/api/endpoints/class-coauthors-controller.php @@ -150,7 +150,7 @@ public function get_item( $request ) { return new WP_Error( 'rest_unusable_data', __( 'Sorry, an unusable response was produced.', 'co-authors-plus' ), - array( 'status' => 406 ) + array( 'status' => 404 ) ); }