2 constructor(title, detail, status) {
9 api_call = async (endpoint, ...arguments) => {
10 let response = await fetch(
12 {method: 'POST', body: JSON.stringify(arguments)}
14 let result = await response.json()
16 throw new Problem(result.title, result.detail, result.status)