Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
65 views

I'm quite new to web scraping, and in particular in using Scrapy's spiders, pipelines... I'm getting some 202 status from some spider requests' response, hence the page content is not available yet ...
Manu310's user avatar
  • 178
-1 votes
3 answers
85 views

I’m designing a RESTful API endpoint like this: resource function get user-info(http:RequestContext ctx) returns database:UserInfo|http:InternalServerError|http:NotFound { authorization:...
shayanmalinda's user avatar
0 votes
1 answer
70 views

i'm building a multi-module jetpack-compose login/signup app. My backend is handled using Spring boot and the login/signup function returns a ResponseEntity. The task: in my frontend i want to display ...
Fatima Jamal's user avatar
-1 votes
2 answers
101 views

I am doing a POST request using URLSession.shared.dataTask which returns data, response and error. I would think that Error would be the same as a failed request. However, I can get the request to ...
user6631314's user avatar
  • 2,050
0 votes
1 answer
267 views

How to customize the "413 Payload Too Large" response in Quarkus with multipart/form-data requests? I'm working with a Java 21 Quarkus (3.18.1) API that uses the quarkus.http.limits.max-form-...
Mad's user avatar
  • 41
1 vote
2 answers
47 views

One of my automated tests is returning status code 302 whereas it should return 422. CategoryTest.php class CategoryTest extends TestCase { use RefreshDatabase; ... public function ...
Mr.Singh's user avatar
  • 2,045
0 votes
0 answers
63 views

I have started learning about and experimenting with the Spotify API recently. So, I wrote the following code to fetch audio features like acousticness, danceability etc. of my liked/saved songs: def ...
Yashaswat's user avatar
0 votes
0 answers
104 views

My website has translations, and I want to translate my error pages. But I translate my pages with a dynamic route (/app/[locale]) and not-found.tsx must be at the root (app/not-found.tsx). I don't ...
Bob's user avatar
  • 1
1 vote
0 answers
35 views

I am using Nextjs, for frontend and laravel for backend. My Login api works fine in postman, but in frontend it return 419 xhr error. What can I do to fix this? export const postLogin = async (data: ...
Konul Memmedova's user avatar
2 votes
1 answer
59 views

How can I show only certain HTTP status codes in the Firefox browser console? For example, I just want to see a list of all image requests that returned a 404 error. The console has a setting to show ...
Dan Roberts's user avatar
1 vote
0 answers
23 views

New to Groovy, not experienced working with APIs. So my apologies if this is something general and not related with these topics. I just wish to understand it a bit. I try to trigger a small script ...
Yonas's user avatar
  • 11
-1 votes
1 answer
68 views

I have a client that is asking the server for n elements. The server is asking ChatGPT for n elements, but sometimes ChatGPT returns n-1 or n+1 elements. Client Code const count = 3; var elements = ...
Evorlor's user avatar
  • 7,436
-1 votes
1 answer
127 views

Stack! The strange situation I'm facing with. I have a code, that is dead-simple: fetch('https://www.o2.pl').then((response) => console.log(response.status)); I tried this with both fetch and ...
DesiredName's user avatar
0 votes
1 answer
89 views

I'm testing my C# API endpoint and encountering a discrepancy between the status code I return in my controller and what I receive by using fetch. I have configured my C# controller to return a 400 ...
Salt's user avatar
  • 980
0 votes
0 answers
220 views

We have an ASP.NET Core application that the client normally uses long polling to get results: before .NET 8, when long polling times out, the client throws a timeout exception which is expected. On ...
user1429116's user avatar
0 votes
1 answer
88 views

I'm using ASP.NET Core and Flurl to write a reverse proxy that sends requests to one destination server, another server, or both, depending on how the reverse proxy is configured at runtime. I want ...
jason44107's user avatar
1 vote
1 answer
84 views

I'm writing a web service with REST schemantics where the user with a standards compliant web browser will be filling a form which is processed by the server. To avoid double submit if the user ...
Mikko Rantalainen's user avatar
1 vote
1 answer
498 views

I am working on a .NET 8 Webapp. I have implemented a middleware to log requests and responses, but I'm facing an issue where the status code is unexpectedly changing from 200 to 204 after calling ...
Asad's user avatar
  • 93
1 vote
0 answers
118 views

If you look at the answer on this page, you can see its outdated code. How to upgrade it to HttpClient and using async methods instead? I have been trying to adapt this code for a number of hours now ...
Peter's user avatar
  • 11
1 vote
1 answer
67 views

Suppose I have a controller which sometimes renders the view normally, and sometimes renders the view with HTTP status code 409. How do change what is displayed in the view based on the status code? I....
Jimmy Li's user avatar
-1 votes
1 answer
58 views

I am using the HTTP status code "403" for now but I want to know if there is a more appropriate HTTP status code. { "status": 403, "message": { "en":...
Reymundus's user avatar
2 votes
1 answer
996 views

I want to be able to see all requests that have error responses (of any kind). By that, I mean requests that have a response with a status code like "4xx" or "5xx". I discovered ...
Dane Rossenrode's user avatar
0 votes
1 answer
50 views

Given an HTTP REST service that manages identity data, for example, where a user resource is available at /Users/{id}, I would like to define a URI alias, /Me, that allows authenticated callers to ...
shelley's user avatar
  • 7,374
0 votes
1 answer
67 views

I am working on a NestJS application where I have a controller method that fetches new users from DB. During this process, an error should be thrown under certain conditions. But my frontend desktop ...
Martin54's user avatar
  • 1,900
0 votes
1 answer
255 views

I'm using the TWebHttpRequest component in TMS WEB Core to do an API call, but I'm not sure how to get the status codes of the response. This is the current code that I use to do the API call using ...
Shaun Roselt's user avatar
  • 4,361
0 votes
1 answer
74 views

Suppose the endpoints called: /fruit /meat and there is a correct parameter called 'Farm', but parameter value pass to the endpoint is incorrect/out of boundary, in which that value is related to ...
ngtszman's user avatar
0 votes
0 answers
43 views

I am using RestClient to make request to the thirdparty api. I am using the following code try { $payload = [ "email" => $user->email, "groups" => [ ...
GaoJin's user avatar
  • 9
1 vote
1 answer
1k views

I am using Polly v8 and .NET framework 4.7.2 to retry on specific status responses only. However, when trying to restrict the retry to only these statuses the code will no longer invoke the retry ...
Keiron's user avatar
  • 13
1 vote
1 answer
35 views

my code doesn't repeat after a failed import requests with open("valid_proxies.txt", "r") as f: proxies = f.read().split("\n") sites_to_check = ["https://open....
Marius's user avatar
  • 11
10 votes
4 answers
19k views

I just migrated an application to Spring Boot 3 and before the migration I used HttpStatus to obtain more details about the error message that a certain web client returned with the gerReasonPhrase() ...
Urki90's user avatar
  • 111
0 votes
1 answer
147 views

I'm attempting to download all image files from a specified Google doc, save the image files to a designated directory on my machine then upload all the image files to a designated Google photo album. ...
Tyler Burr's user avatar
0 votes
1 answer
40 views

I'm wondering which is the best choice for the HTTP response code in the following situation: There is a POST / PUT REST API that associates a resource (let's call it source item) with another one (...
Trenomarcus's user avatar
0 votes
2 answers
579 views

In my code I have a get request as: response = requests.get(url) For invalid status code ie non 2xx an exception is raised, exp_obj = RequestException(response) Now I want to get the status code from ...
Abhiram Devisetti's user avatar
0 votes
1 answer
826 views

I am engineering a REST API server application, trying to establish a rule for the server response when a resource does not exist. While we can define our internal codes within our team, there is a ...
Juls's user avatar
  • 5
-2 votes
1 answer
380 views

in windows 10 , i'm using react-router-dom 5.2.0 and react-redux 7.2.5 and react 17.0.2. and axios 0.21.4 and WebStorm 2023.1.3 IDE. Consider 1 - axiosInstanse.js: import jwt_decode from 'jwt-decode';...
saman barjawand's user avatar
1 vote
1 answer
926 views

I'm designing an API and I need to document a response to a GET request for the following situation: You (the client) have made a valid GET request. You have the right to GET this particular resource. ...
billpg's user avatar
  • 3,313
-1 votes
1 answer
991 views

How do i read the http status of a http trigger function built using Azure Functions v4? The equivalent in v3 would have been something like const statusCode = context.res.status; context.log(HTTP ...
ReoDude's user avatar
3 votes
2 answers
3k views

We're witnessing a strange behavior when trying to load a site that is behind a waf. There's a couple of misterious redirects, but one of them caught my eye: it has a 200 Temporary Redirect Status ...
Luis Abreu's user avatar
  • 4,682
0 votes
1 answer
450 views

Building a webhook receiver in PHP 7.4.30. I can receive absolutely fine. No problems there :-) However, we need to carry our synchronous validation on the JSON and send back a 400 bad request and a ...
Tym's user avatar
  • 113
0 votes
1 answer
894 views

I'm currently working on a Spring application and I've come across the HTTP 304 Not Modified status code. While I understand its basic purpose, I'm struggling to grasp real-life scenarios where it ...
shiningStar's user avatar
1 vote
1 answer
555 views

I'm trying to return other http status codes from .net using amazon.lambda.core - I tried this as a handler: public async Task<string> Handler(string input, ILambdaContext context) { ...
Darren Oakey's user avatar
  • 3,724
0 votes
1 answer
302 views

I manage an application that has an irregular update schedule that requires live fixes and also deals with realtime data. I want to notify clients (currently just web clients) that a new version is ...
ozzcer's user avatar
  • 3
0 votes
0 answers
286 views

I have an Airflow DAG (GCP Composer) that invokes a Cloud Run job using HTTPS POST. I am using a PythonOperator to invoke the Cloud Run job as follows: run_report_task = PythonOperator( ...
femeloper's user avatar
0 votes
1 answer
980 views

i am currently working on a worpress site, as i was scrolling on the products page, the page got very slow, and after some times it would be stuck and take a lot of time to load other products, then ...
Jasmine Ben Gobrane's user avatar
0 votes
2 answers
3k views

When testing some REST API, I'm using a cURL command. However when the request failed, it seems that cURL does not indicate that there was a non-success status code (HTTP/2 405 in my case); instead I ...
U. Windl's user avatar
  • 4,748
0 votes
0 answers
229 views

In my spring boot rest api app,I want to define a automatic method for unhandled exception.Suppose client give wrong password in login endpoint.The response is 403 forbidden without any message.but i ...
Shakib hasan's user avatar
1 vote
3 answers
2k views

I'm developing a web application that has a backend API, which is going to be primarily used by a reference frontend application, but other clients can use it too. The data my API sends has a specific ...
Danya02's user avatar
  • 1,406
0 votes
1 answer
451 views

I'm building an Api with Jwt token auth, in my refresh token method i validate the token using the official JwtSecurityTokenHandler.ValidateToken() method then i go and get the user from the DB. My ...
Quak_2023's user avatar
  • 615
1 vote
1 answer
3k views

I want to set response status 404 on my /not-found page. I tried to: create custom error page in ~/error.vue and throw fatal errors with createError. But it just sends 200 throw fatal errors and use ...
Ришат Ризванов's user avatar
0 votes
1 answer
3k views

I need to verify if the content coming into my Azure http function is not empty and is of type JSON. So I am doing this within my Azure function: if (req.Body.Length == 0) { ...
Jason_Hough's user avatar

1
2 3 4 5
35