Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [http-status-codes]

3 digits status codes returned by a web server noting the status of a HTTP request.

0
votes
1answer
34 views

How to force 403 or 404 on specific route

I have made a custom form to create nodes for a specific content type. Due to that, I want to throw a 403 or 404 on the admin page that creates new node. The route I mean is 'node/add/'. I guess in ...
2
votes
1answer
28 views

Switch theme by http status code

We have a page that uses several themes, but the 404 pages should all look the same. So, for all themes except one we need a rule that switches to another theme when the URL does not match any ...
0
votes
1answer
45 views

Drupal admin pages https [closed]

I have a multilingual site running Drupal 7.57 I want to use https everywhere - and I have set the $base_url = "https://en.website.com". But a lot of the generated url's on the site is still without ...
0
votes
0answers
213 views

Upload error when trying to add image to my Drupal 8 site on a web server

I recently deployed my website from local to a webserver, all works well except the fact that I can't upload images. When I try to upload an image I get the error "Upload error. Could not move ...
3
votes
2answers
957 views

How to issue 404 from a KernelEvents::REQUEST event

I'm trying to issue a 404 from a KernelEvents::REQUEST event, but it's resulting in the following error: Fatal error: Maximum function nesting level of '256' reached, aborting! in /var/www/vendor/...
7
votes
1answer
620 views

Returning alternate HTTP codes for unpublished content in Drupal 8

I'm trying to return the 404 page instead of 403 response for unpublished nodes in Drupal 8. I tested kernel response subscriber, but found the code I was using would only change the status code to ...
0
votes
2answers
757 views

HTTP error 500 when backup entire site

Using Backup and Migrate module on a D7 site separate backups (data / files) give no problem (backup to nodesquirrel AND download) but backup entire site (data + files) generates "http error 500" (...
0
votes
0answers
77 views

How to get HTTPS url to work with Drupal Iframe Module?

I want to get HTTPS urls working as iframes. Now only http URL's work. https://www.drupal.org/project/iframe Is there a way to do that?
0
votes
1answer
806 views

How to create custom pages for http 500 and 410 status errors?

In the site information section in the configuration, there is an option for setting the 404 page. But How will I set a custom page for http 500 and 410 error pages? Is there any specific module for ...
0
votes
0answers
67 views

Cannot delete taxonomy terms, Cannot use object as array

When trying to delete taxonomy terms using the backend I get a 500 error. I am able to update the terms, but not delete any. I was able to recreate this behaviour locally which was fixed with a core ...
0
votes
1answer
204 views

Clean URL regarding admin/* paths return 503 Service unavailable

I'm facing a weird problem in which all clean urls of admin pages such as admin/dashboard return 503 notice. However, by changing url to non clean i.e. ?q=admin/dashboard it works. All other content ...
1
vote
1answer
92 views

Rebuild in Features tripping HTTP 500 Error

I am trying to rebuild some features in Drupal 7.37 in preparation for migration and upgrade on a local dev environment using MAMP but I get an HTTP 500 error when attempting to view overrides. ...
0
votes
1answer
1k views

Problem with SSL certificate [closed]

I just enable SSL certificate for my domain. I added that in my .htaccess file: RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^domainname\.com* RewriteRule ^(.*)$ https://www.domainname.com/$...
0
votes
2answers
65 views

hook_menu_get_item_alter() needs to give a 404

How can I throw a 404 error from within hook_menu_get_item_alter()? If I call drupal_not_found() then it keeps calling itself, and I don't know an other way to do this.
2
votes
1answer
2k views

AJAX returns response code 200, and displays error messages in callbacks

I'm running Drupal 7.34 with quite a few modules (relevant because unfortunately I did not notice when the problem first started and it would take ages to look through them all one by one) and I have ...
0
votes
3answers
621 views

custom block menu path returns json Ok, but a 404 status header

I created a custom path via hook_menu with a page callback to a function that prints json. It all works in the sense that requesting: http://cms.tripchi.com/tripchi/getme returns my JSON, but the ...
1
vote
1answer
258 views

Jquery Ajax to Drupal to External site, reading response

I have a drupal site. There is a page (page 1) with a form that gathers user info and submits it via AJAX to a Drupal Module page. The AJAX format is jquery var responseTarget = '/site/module/...
0
votes
1answer
3k views

An AJAX HTTP error ocurred. HTTP Result Code: 500 (while trying to rebuild content access perms)

I have installed a module that ask me everytime to rebuild content Access Permissions, but every time I try to do it, it shows me an error I do not have idea why is it happening. Please help An AJAX ...
0
votes
1answer
535 views

Drupal 7.27: 408 Request time out in Chrome browser [closed]

We are getting 408 request time out errors in Chrome browser only since the beginning of May. We have not been able to replicate the problem with any other browser. With one website we had a SSL ...
3
votes
2answers
7k views

How to show a node but return HTTP 404 response

I want to show an existing page(node) normally but return a HTTP404/410 etc instead of HTTP200. How can I do it? Is there any simple way to do it?
1
vote
1answer
969 views

404 page not found error even though the page exists

On my Drupal 7 website, I'm getting a 404 page not found error on the front page: http://mydomain.com even though I can view the page just fine. Google Webmaster tools wouldn't validate my site; w3 ...
0
votes
2answers
4k views

500 internal server error on a single node

This just happend randomly today. I tried to access a page, but it keeps giving me a 500 internal server error http://www.austravel.com/holiday-destinations/australia All the other pages are working ...
0
votes
4answers
8k views

“An AJAX HTTP error occurred.HTTP Result Code: 200”

I'm new to Drupal, and I'm working with a Drupal site that someone else wrote. From the admin menu, when I go to Structure -> Pages -> Edit Content -> Gear Menu -> Edit (or Settings), Drupal throws up ...
2
votes
2answers
814 views

Returning alternate HTTP codes for unpublished content

Sometimes when nodes are unpublished, they are not meant to be taken live again. Under those circumstances, I would like to return a 410 Gone status, instead of the default 403 Forbidden. ...
10
votes
6answers
3k views

Friendly error page to replace WSOD

This should be the easiest thing to do, but for some reason I just can't get it done. I'm trying to get a friendly static error page to replace nasty 500 scenarios. For now I'm just trying to ...
4
votes
1answer
966 views

Why does drupal_http_request return a 400?

I am having issues sending a POST via my module. In my browser's REST client I get a 200 with POST https://mydomain.com username=myuser&password=password1 So I know that the service is working ...
0
votes
1answer
180 views

Devel admin interface unreachable; or I broke my Devel?

Not sure what broke where, been using devel & love it. I enabled the Display $page array option, went, did stuff, came back to disable and when trying to load admin/config/development/devel either ...
0
votes
1answer
87 views

Ubercart/Securepages site breaks overnight!? Can't POST (login/add to cart)

This site seemingly broke overnight without any changes being made to the configuration.. this is a production site: https://www.skinnyboyswagclub.com/cardigan Add an item to your cart and watch the ...
20
votes
3answers
12k views

How to check if the current page is a 404 error from a module/template?

How to check, in D7, if the current page is returning a 404 error from a module/template?
7
votes
1answer
4k views

Why does Drupal use 403 Forbidden?

RFC 2616, the document that defines HTTP/1.1, lays out the definitions of all the HTTP status codes. For 403 Forbidden, it says: The server understood the request, but is refusing to fulfill it. ...