| 22 | | '''json_ereturn json_response({"error": error}, status=403)rror''' |
| 23 | | On the idea of: |
| 24 | | {{{ |
| 25 | | def json_error(error_str, status=400): |
| 26 | | return json_response({"error": error_str}, status=status) |
| 27 | | }}} |
| | 22 | '''json_error''' |
| | 23 | * On the idea of: |
| | 24 | {{{ |
| | 25 | def json_error(error_str, status=400): |
| | 26 | return json_response({"error": error_str}, status=status) |
| | 27 | }}} |
| | 28 | * I am not sure, where to put this, either in the general response place, where json_response is also, or maybe only where it's being used in the federation code. If I have to vote, I'd likely vote for the former. |