Bad Request Error 404
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn 404 bad request chrome more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
404 Bad Request Hatası
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, 400 bad request helping each other. Join them; it only takes a minute: Sign up 404 Not Found or Bad Request? up vote 6 down vote favorite 1 Let's say that we have the following REST call: GET api/companies/5 (get
Status 404 Not Found
company with id 5) If company '5' doesn't exist, we would typically return a 404 Not Found response. But now, let's take this call: GET api/companies/5/invoices/10 (get invoice 10 from company 5) Now, if company '5' doesn't exist, do we still return a 404 Not Found? Or should a 404 only be returned if the outer most resource can not be found (invoice 10, in this case). Would Bad Request perhaps be a better option? rest how to fix 400 bad request asp.net-web-api http-status-code-404 asp.net-web-api2 api-design share|improve this question asked Nov 17 '14 at 8:32 davenewza 10.5k1468192 1 the best would be to have a 404 but handled with a custom error message, its always better to hide ugly errors to users –Charlie Nov 17 '14 at 8:35 technically speaking, it should be 404. But response body may contain anything. Full response will drive the next step. –Jangid Nov 17 '14 at 8:53 add a comment| 1 Answer 1 active oldest votes up vote 8 down vote accepted 404 is your best response. According the HTTP RFC, http://www.ietf.org/rfc/rfc2616.txt, a 400 Bad Request means: The request could not be understood by the server due to malformed syntax. Whereas, a 404 states: The server has not found anything matching the Request-URI. The entire URI is your resource identifier, and you're not finding a matching resource for that particular identifier. share|improve this answer answered Nov 17 '14 at 21:17 Josh Rack 78759 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions ta
e-Reimbursement Effort Certification and Reporting Technology (ECRT) External Requisition Generator fsaATLAS / SEVIS Guided Expense Tool HRA Human Resources System (HRS) ImageNow/WebNow InfoAccess Interactive Reporting ISIS Job and Employee Management System (JEMS) Manifest Oracle Identity Manager/IAM Other PDS Online PI Financials
Error 404 Means
Tool Pre-Posting Allocation Tool Resource 25 Shared Financial System Supported LANs TEAR Voicemail/Telephone
400 Bad Request Android
WISDMCampus Services Active Directory Adobe Connect Backup & Storage Bucky Backup Kumo UW Madison Box UW-Madison error 400 youtube Google Apps Blackboard Collaborate Campus Software Library Charter U Course Guide Course Proposal DARS DATN E-commerce E-Learning Canvas Case Scenario Critical Reader Kaltura Learn@UW Lynda.com Moodle Electronic http://stackoverflow.com/questions/26968479/404-not-found-or-bad-request Lab Notebooks eTEACH Faculty Center GoPrint Identity Finder Lecture Capture Service McAfee Endpoint Encryption Mobile UW My UW System Portal My UW-Madison NetID Login Service Office 365 Qualtrics Scholarships@UW-Madison SSL Certificate Student Center UW Digital ID UW White Pages / Directory Web Accessibility Web Hosting WISC Software Catalog WiscAlerts WiscCal WiscList AdvisorList Classlist Mass Email WiscList Custom WiscMail Wisconsin Federation WiscWeb https://kb.wisc.edu/helpdesk/page.php?id=47897 CMSDoIT Help DeskDoIT StaffKnowledgeBaseMiscellaneous General Information SecurityNetworks & Connectivity 2factor (OCIS) VPN Campus Network Departmental VPN eduroam ResNet Wireless UWNet WiscVPNOS and Desktop Applications Applications Browsers Email Clients Productivity Operating Systems Mac OS X Windows PDA/Smartphone VirusSelf Help/Limited Support Eudora Linux/Unix Mac OS 9 Windows 95/98/NT/2000 AdvancedTopics Map > OS and Desktop Applications > Applications > BrowsersWeb Browsers - How to Fix a "Bad Request" ErrorThis document describes what to do if you receive a 400 Bad Request error message upon loading a website.Problem When you attempt to access a website, you may sometimes instead receive a "Bad Request" error message where the website content should have loaded. This error often contains the number "400" and may include additional text, such as "Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit." Solution First, check the website URL you entered to make sure it is correct. If the web address appears to be entered correctly, then the issue can usually be resolved by clearing your browser's cache and cookies. For instructions on performing these steps, click on the appropriate li
the "400 Bad Request" error message from a website Posted on October 24, 2012 by Timour Rashed Problem: Whenever you access any website from a specific domain. For example http://www.abc.com/morepages/…. In the http://timourrashed.com/how-to-fix-the-400-bad-request-error-message-from-a-website/ URL above, the domain is "abc.com" and "morepages" is a sub-site. The problem shows as the following: Bad Request Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit. Cookie ----------------- Solution: It wasn't clear at first but the error message is telling me exactly what the problem is (the keyword here ladies and gentlemen is "cookie") The problem was bad request due to a cookie that has become corrupted. Not sure how it got that way but it seems that the last time it was generated something went wrong. The easy solution is to delete all your cookies but here is the best way to solve that specific issue, I have created a customized guide for Firefox, Chrome, and Internet Explorer. Firefox 1. Access the options from the main menu 2. 400 bad request Go to the Privacy tab 3. Click "remove individual cookies" 4. You will get the window below and you can search for cookies on that specific domain (in our example abc.com) 5. To delete the cookies, just select and click "Remove Cookie" 6. Try accessing the site again, if you still have issues you can repeat from step 4 Internet Explorer 1. Access the options from the main menu Tools -> Internet Options 2. Select Settings under the "Browsing history" section in the General tab 3. Select "View files" 4. You can search for those cookies and manually delete them Google Chrome 1. Click on Settings 2. Enter "cookies" in the search field then click "Content settings" 3. Click "All cookies and site data" under Cookies 4. Select the specific cookie to delete the cookie ----------------- If you found this article useful, don’t forget to share it by clicking one of the buttons below. You can also share your thoughts in the comments section below. That should fix the error message "400 Bad Request", if you have any questions or concerns please leave a comment below. You can also follow me on Twitter, add me to your circle on Google+, or like my Facebook page to keep yourself up