How to return http status code for exceptions in rest services Yes that will be a problem :) Just catch them with businessException exception Then write a utility which generates exceptions according to your enumeration You may use aop to catch them
Print Only HTTP Status Code with Curl | Lindevs The command will return HTTP status code such as 200 Previous Next; Related Set Client User Agent with wget When using wget for HTTP requests, specifying a User
rest api - sObject Get Deleted return HTTP Status Code 400 . . . Even if your datetime values are in ISO 8601 format, that API mandates the UTC timezone, so you must use Z instead +00:00 Docs (emphasis mine): Starting date time (Coordinated Universal Time (UTC)—not local— timezone) of the timespan for which to retrieve the data
Return http response multiple times? : r djangolearning - Reddit What about creating a ZIP file with all the files then sending that file? import os, zipfile from io import BytesIO from django http import HttpResponse def download_multiple_files(request): zip_subdir=f"files" zip_filename=f"files zip" s = BytesIO() zf = zipfile ZipFile(s, "w") for f in SomeModel objects all(): path = f file path #f file is a models FileField fdir, fname = os path split(path