http-status-code-404 Questions
2
We are designing a public API, and trying to figure out what is the best practice for GET with following cases:
Path param:
/orders/{orderId}
Found: 200 with a response body.
Not Found: 404.
Query...
Parishioner asked 4/3, 2016 at 21:43
4
I have developed a Java web application using Tomcat 7 and Oracle JDK 1.7 with NeatBeans 7.3. My application runs on my local pc without any errors.
But after i hosted my application, I can't acce...
Beatnik asked 4/10, 2013 at 4:49
4
I am having a project using Spring Boot and Spring Security. Spring Security validate the header with the session id for every request. If the session id is invalid or expired, an error code 401 wi...
Leonhard asked 18/12, 2019 at 8:1
4
Solved
How can i redirect a request with FastAPI if there is a HTTPException?
In Flask we can achieve that like this:
@app.errorhandler(404)
def handle_404(e):
if request.path.startswith('/api'):
return...
Inessa asked 19/7, 2020 at 23:31
7
Solved
Simple problem. I start up VS2008 and create a new WCF Service application. This will create a default application with a few test methods showing it works. I press CTRL+F5 and it does indeed work!...
Wilbur asked 6/10, 2009 at 21:58
3
Routes not working and default controller showing error 404 when I am setting welcome as a default controller then all routes defined with the welcome controller working but my other routes and url...
Galatians asked 18/1, 2018 at 8:13
8
I have issue with my app after run it on VPS.
I installed IIS on VPS, removed DefaultWebsite, and add another one. Everything looks fine, website starts, but I don't have access to any files from...
Husking asked 29/12, 2016 at 14:11
3
Solved
I have made a little Angular application, I have built it on my computer, but when I try to open the index.html file I have 404 errors, I tried to deploy it on a web server but it's the same :
GET...
Jimmiejimmy asked 10/1, 2020 at 0:30
17
How to handle Image.network when the url is wrong or the destination leads to 404.
for example try
Image.network('https://image.tmdb.org/t/p/w92')
Arianaariane asked 29/9, 2018 at 13:36
3
Can't load a very simple JSP page with spring-boot, getting 404 Not Found
HmisApplication.class
@SpringBootApplication
public class HmisApplication extends SpringBootServletInitializer {
@Overrid...
Ecclesiasticus asked 8/5, 2017 at 12:39
7
Solved
I am able to upload the files to media folder( '/peaceroot/www/media/') that I have set up in settings.py as below
MEDIA_ROOT = '/peaceroot/www/media/'
MEDIA_URL = '/media/'
But through admin I ...
Quentinquercetin asked 29/3, 2016 at 9:14
2
Solved
New to FastAPI and uvicorn, but I'm wondering why when I run my "hello world" service by starting it using uvicorn from the command line, it works fine, but when using the "uvicorn.r...
Seng asked 22/9, 2020 at 23:38
7
Solved
I'm trying to set up a Github Pages site for my Blazor project. Even with a brand new blazor project I have had no success. I consistently hit 404 errors with an unmodified new project, following t...
Urdar asked 22/6, 2019 at 22:12
7
Here are my nginx configure files.
On the default.conf, the first location is used to access /usr/share/nginx/html directory, it is ok while I access http://47.91.152.99.
But when I add up a new...
Stammer asked 12/12, 2016 at 10:58
2
Solved
I'm trying to use keycloak AdminAPI (https://www.keycloak.org/docs-api/3.0/rest-api/index.html#_users_resource) to create user and assign client roles. I'm receiving correct token, and user is crea...
Brutish asked 22/5, 2019 at 10:22
4
307 & 308 redirects (https://www.rfc-editor.org/rfc/rfc7538) is accepted by most modern browsers.
However upon google-ing a lot, I am unable to find a list of browser versions that support 307/...
Rosa asked 9/3, 2017 at 19:16
2
I have bought a template that comes with hundreds if not thousands of files (Javascript, images, plugins, etc.). I have now chosen one of the homepages (out of many) that I want to use. Rather than...
Flame asked 8/8, 2016 at 15:5
13
Solved
I'd like to 'fake' a 404 page in Rails. In PHP, I would just send a header with the error code as such:
header("HTTP/1.0 404 Not Found");
How is that done with Rails?
Onions asked 5/3, 2010 at 9:52
7
Solved
My project is named homefood, and when I runserver I get this error.Anybody have any clue how to fix this error.
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/
Usin...
Broderick asked 20/11, 2013 at 17:2
11
Solved
My file .htaccess handles all requests from /word_here to my internal endpoint /page.php?name=word_here. The PHP script then checks if the requested page is in its array of pages.
If not, how can I...
Trahan asked 4/9, 2009 at 19:29
28
I can't get my static files to come up. I've tried various settings and directory configurations and so on, but they just turn up as 404s. I have debug_toolbar installed so know that STATIC_URL is ...
Remy asked 9/10, 2012 at 22:38
20
Following the tutorial found here exactly, I cannot create a custom 500 or 404 error page. If I do type in a bad url, the page gives me the default error page. Is there anything I should be checkin...
Phenazine asked 15/7, 2013 at 20:7
2
Solved
I am using Vue and vite to practice the workflow of the web application with fetching API, following this tutorial. At the end of the yarn dev command, I got the error. I've tried:
Directly clone ...
Ripp asked 5/7, 2021 at 6:30
10
Solved
Why am I getting a HttpStatusCode of 0 if I point the service my client is connecting to to a bad URL.
My statusCodeAsInt is showing up as a 0. Why is it not showing up as a 404 and being handled?...
Unsay asked 14/1, 2016 at 17:22
8
Solved
I'm working on a service in WebAPI 2, and the endpoint currently returns an IHttpActionResult. I'd like to return a status code 422, but since it's not in the HttpStatusCode enumeration, I'm at a l...
Klusek asked 30/4, 2014 at 22:38
1 Next >
© 2022 - 2025 — McMap. All rights reserved.