Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7756711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:53:35+00:00 2026-06-01T12:53:35+00:00

I am having a heavy issue with my web app when retrieving data through

  • 0

I am having a heavy issue with my web app when retrieving data through API from sources and is censored/deleted content because of how Google is interpreting it. According to google at my webmaster’s panel :

Server error 18,216 errors

Not found 13,333 errors

Not followed 9 errors

Other 190 errors

In the live version of my app, I show returned errors by just doing (I’m using codeigniter):

show_error($e->getMessage());

I did so because I needed to show the error returned, from the source, without adding to much code, but I didn’t thought of the negative effect it was to have later (I’m at my first published app, still have much to learn).

Right now I am working to a new release, but until then I was wondering which HTTP status code would be the appropriate one to use for a hot fix:

204 No Content

404 Not found

410 Gone

some other one?

UPDATE

There is no issue with the code or server, the HTTP Status Code 500 is generated because of show_error($e->getMessage()); and I want to use it the same way but adding an error code my self: show_error($e->getMessage(), 'error_general', 503);

because 500 is set as default:

function show_error($heading, $message, $template = 'error_general', $status_code = 500)

UPDATE2

Just to clarify things, I do not want to send a HTTP Status Code related to a restrict access/content but send a Code one related to the error message inside $e->getMessage(), which 90% of the cases contains error message saying that the content was deleted or censored.

So that said, I ask: Which is the right HTTP Status Code to use when displaying an error message that says the content was either removed/censored or was set to unavailable because of X reason.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:53:36+00:00Added an answer on June 1, 2026 at 12:53 pm

    If I understand you correctly, a user (or User-Agent) is trying to access something that used to be there but for all intents and purposes, is no longer available. It may exist somewhere on your server, but as far as the web is concerned it doesn’t exist.

    If that’s the case, you have some choices, depending on what you want to communicate to the user:

    1. 403 – Forbidden. This can be used if you want to let the user know that there DOES exist such a resource, but you can’t get it. It means that authentication won’t help.
    2. 410 – Gone. This means, yes there was something here, but not anymore and it’s not coming back. Only use this if you’re sure that the condition is permanent.
    3. 404 – Not Found. This is more general purpose than 410. If you’re not sure whether a 410 is appropriate, fall back to 404.

    Both 403 and 410 let the user know that it is some kind of legitimate path, but that you may never be able to GET the resource. For all three you may include an explanation in the body of the response (i.e. your error message).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I come from heavy web application dev background, and having some problems representing my
I'm working on a very graphic-heavy application which uses content from a bunch of
I've been doing some Web-Projects lately that rely on heavy Data-Binding and have been
I'm building a concert calendar that's very heavy on javascript (using jQuery). I'm having
Having just pulled my hair off because of a difference, I'd like to know
Having a list of data object and something visual to represent each, where would
I am having some speed issue with my datatables. In this particular case I
I'm having a little bit of trouble making OpenID work from within an iframe.
Having watched samples from Rob Conery's Kona application, I see that he is using
I'm having an issue where I'm corrupted a PDF and not sure of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.