[wp-trac] [WordPress Trac] #54807: URL Details request returns a 404 status for inaccessible pages

WordPress Trac noreply at wordpress.org
Fri Jan 14 10:33:58 UTC 2022


#54807: URL Details request returns a 404 status for inaccessible pages
--------------------------+------------------------------
 Reporter:  talldanwp     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by get_dave):

 Yes this does seem a little unusual. When I implemented this I was
 thinking that we needed some way to communicate to the client that the
 remote URL was inaccessible.

 Perhaps instead we return a "success" code such as `204` to indicate the
 lack of content.

 Be aware that any change here will need to be accompanied by changes to
 the handler code in Gutenberg Core because we'll need to add a special
 case for the `204` and reflect that in the UI as required.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54807#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list