Questions tagged as 'http-status'

1
answer

Alternative to http_response_code in lower versions than php5.4

You can get HTTP status in versions prior to PHP 5.4 ( http_status_code is only supported in PHP5.4 +)? I'm creating a custom error page system, it's not going to be a system for a specific project, but as a matter of compatibility...
asked by 29.05.2015 / 00:27
2
answers

How do I check the status code of the server http response in java?

Good morning, guys. I would like to know how to do this in java to see if the response received from the server was successful or not. Can anyone help me with this?     
asked by 26.06.2015 / 16:55
1
answer

Mapping .NET exceptions to HTTP status codes

Situation I'm implementing a HttpModule which is responsible for monitoring usage patterns and intercepting and managing unhandled exceptions in ASP.NET applications via events BeginRequest , EndRequest and Error of cont...
asked by 16.07.2014 / 21:41
2
answers

How to remove 401 error message from the console with AngularJS / Javascript?

I get the following error message in my console: POST http://localhost:8080/minhaURL 401 (Unauthorized) I would like to know how I can remove this error log from the console, since I am already giving a visual feedback to the user that he m...
asked by 18.01.2017 / 14:42
2
answers

Receiving code 200 when it should be 404

I created an ASP.NET MVC 5 application by adding the following code snippets: Web.config <system.web> <customErrors mode="On"> <error statusCode="404" redirect="~/Erro/Erro404"/> </customErrors> </system...
asked by 01.05.2014 / 18:39
1
answer

Upload image to server Apache2 - Ionic 3 + PHP

Based on a tutorial ( link ) I made an application to upload images on an Apache server, as described in the previous link. In the created provider I put the URI of my machine on the network running Apache2 with the file parse-upload.php (which...
asked by 16.11.2018 / 18:15
0
answers

Problem with multithreading crawler using jsoup

Hello, I'm developing a multithreading crawler, each job (thread) deals with X sites to parse certain content with the jsoup lib. The sites are all accessible. The problem is that the final results is never the same. That is, when I run the c...
asked by 08.12.2016 / 22:26
1
answer

HTTP - Correct types of return

I have some questions regarding the most appropriate status for each of the following situations: PUT on Object without Id PUT in URL localhost: 8080 / users / 1 with a JSON without the Id attribute. PUT in Object with Id othe...
asked by 11.06.2016 / 07:59
1
answer

Why does Retrofit throw an exception when the status code is 204?

After a GET query only to check if a content exists on the server, the return is 200 (exists) or 204 (does not exist). Why does Retrofit throw the exception below when the server returns the Status Code: 204 In Content ?    java.net.P...
asked by 08.03.2017 / 21:39
1
answer

How to configure in apache HTTPS for a specific page and HTTP for the others?

I need a specific page to work via HTTPS with a specific certificate. How to configure the httpd.conf, httpd-ssl and httpd-vhosts.conf files in apache? Do you have any other files to modify?     
asked by 20.08.2014 / 15:41