Perhaps this should be encased in `elif request_type == 'POST':`, and anything else should raise a `ValueError` for an invalid `request_type`