{"id":3236,"date":"2018-04-03T09:13:33","date_gmt":"2018-04-03T09:13:33","guid":{"rendered":"https:\/\/shortpixel.com/blog\/?p=3236"},"modified":"2020-06-02T07:38:58","modified_gmt":"2020-06-02T07:38:58","slug":"shortpixel-guide-to-http-error-codes","status":"publish","type":"post","link":"https:\/\/shortpixel.com\/blog\/shortpixel-guide-to-http-error-codes\/","title":{"rendered":"ShortPixel guide to HTTP error codes"},"content":{"rendered":"<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-3266\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2018\/03\/sign-1024x681.jpg\" alt=\"error codes\" width=\"604\" height=\"402\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2018\/03\/sign-1024x681.jpg 1024w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2018\/03\/sign-300x199.jpg 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2018\/03\/sign-768x511.jpg 768w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2018\/03\/sign.jpg 1920w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><\/p>\n<p>We hope that nobody will have to read this article. But if you are here, this means that you have a problem with our online service, and you got a three figure code that should explain your issue.<\/p>\n<p>Please read further to find what you need to do if you get a HTTP status error when you are using ShortPixel.<\/p>\n<p><!--more--><\/p>\n<p>ShortPixel optimize images in the cloud. It takes\u00a0user&#8217;s images to our servers, where they are compressed, and it copies their smaller version back to your site. For this operation to be successful, our servers need to contact your site.<\/p>\n<p><strong>Important<\/strong>: If your site is being locally hosted , then our service will not work.<\/p>\n<h4>The most common HTTP status errors<\/h4>\n<p>We don&#8217;t include all HTTP status codes in this article, only those that could occur when ShortPixel cannot work properly. For a complete list of error codes you could check these sources: <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes\" target=\"_blank\" rel=\"noopener noreferrer\">Wikipedia<\/a>, <a href=\"https:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec10.html\" target=\"_blank\" rel=\"noopener noreferrer\">W3.org<\/a>, <a href=\"https:\/\/httpstatuses.com\" target=\"_blank\" rel=\"noopener noreferrer\">httpstatuses.com<\/a><\/p>\n<h5>401 HTTP status error: Unauthorized access<\/h5>\n<p><strong>When<\/strong>: You get these error if the images are stored in a password protected folder.<\/p>\n<p><strong>Solution<\/strong>: Please go to the ShortPixel plugin settings, click on <em>Advanced<\/em> tab, and scroll down until you find the <em>HTTP Auth<\/em> field. Add your credentials there and save the settings.<\/p>\n<p>Note: Please don&#8217;t confuse these credentials with those needed for logging to your WordPress admin dashboard.<\/p>\n<h5>403 HTTP status error: Forbidden access<\/h5>\n<p><strong>When<\/strong>: Similar with 401 error, 403 error is an access type error. It is displayed when the credentials used in <em>HTTP Auth<\/em> field are wrong.<\/p>\n<p><strong>Solution<\/strong>: Please check that you used the right login\/password info in the HTTP Auth field from the ShortPixel settings menu.<\/p>\n<p>Note: Some servers are setup to return 404 instead of 403, because the site administrator doesn&#8217;t want to disclose that the reason of the error.<\/p>\n<h5>404 HTTP Status error: Not Found<\/h5>\n<p><strong>When<\/strong>: Anytime a resource\/page is not found at the requested URI the server returns 404 status.<\/p>\n<p>If you got this error when you try to optimize image\/s with ShortPixel then most likely:<br \/>\n&#8211; the images were removed from the server,<br \/>\n&#8211; or they were moved to other location from the server, without updating the WP metadata accordingly.<br \/>\n&#8211; the images are stored locally.<\/p>\n<p><strong>Solution<\/strong>: Unfortunately, ShortPixel can compress only images that are publicly accessible. Please re-upload the missing images.<\/p>\n<h4>A common approach for all those 5XX errors:<\/h4>\n<div class=\"gmail_default\">\n<p>You cannot do much about the 5XX errors because <b>they are related to your server. <\/b>In our intention to help, we can investigate for you the issue and advise you how to proceed. To get our help, you have to <a href=\"https:\/\/shortpixel.com\/contact\">contact our support team.<\/a><\/p>\n<p>You can also wait and try to resume the optimization after a few hours. Knowing the issue we have set up alerts that announce us when servers have issues.<\/p>\n<\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"_3bJ2H CHExY\">\n<div class=\"_1l8RX _1ByhS\">Photo by <a href=\"https:\/\/unsplash.com\/photos\/YEWvMidcKkg?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noopener\">Adri\u00e1n Tormo<\/a> on <a href=\"https:\/\/unsplash.com\/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noopener\">Unsplash<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>We hope that nobody will have to read this article. But if you are here, this means that you have a problem with our online service, and you got a three figure code that should explain your issue. Please read further to find what you need to do if you get a HTTP status error [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3236","post","type-post","status-publish","format-standard","hentry","category-world-of-wordpress"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/3236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/comments?post=3236"}],"version-history":[{"count":14,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/3236\/revisions"}],"predecessor-version":[{"id":5414,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/3236\/revisions\/5414"}],"wp:attachment":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/media?parent=3236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/categories?post=3236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/tags?post=3236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}