In my python application using mod_wsgi and cherrypy ontop from Apache, my response code changes to 500 out of 403. I explicitly set this to 403.
i.e. cherrypy.response.status = 403
I do not understand where and why the response code that the client receives is 500. Does anyone have experience with this problem>
HTTP Error 500 is used for internal server errors. Something on the server or in your application probably throws an exception, so no matter what you set for the response code, CherryPy will send 500 back.
, CherryPy ( ). CherryPy , .
Source: https://habr.com/ru/post/1729321/More articles:PyQt installation question - pythonРазличные действия над кнопками просмотра предупреждений, в зависимости от вида предупреждения - iphonequickly invalidate cache - c ++Notification with 2 buttons - iphoneCan you isolate python projects logically into separate files / classes, e.g. in C # / Java? - pythonMySQL Query - имя таблицы результатов - databaseError adding ManyToManyField to Django - pythonIs there a reason why I can not add ManyToManyField? - pythonTwo different sites with the same content. A terrible idea? - seoВещественное случайное значение как параметр обработчика интервала по умолчанию - javascriptAll Articles